@extends('model/admin')
@section('title','编辑商品品牌')

@section('content')
	@if (count($errors) > 0)
	<div class="mws-form-message error">
    	This is an error message
        <ul>
        	 @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
    @endif
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>编辑品牌</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/goodsbrand/update" method='post'>
    			<div class="mws-form-row">
    				<label class="mws-form-label">品牌名称</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" value="{{$res['brand']}}" name='brand'>
    				</div>
    			</div>
                <div class="mws-form-row">
                        <label class="mws-form-label">状态</label>
                        <div class="mws-form-item clearfix">
                            <ul class="mws-form-list inline">
                                <li><input type="radio" name='state' value='0' @if($res['state']==0) checked @else '' @endif> <label>新入驻</label></li>
                                <li><input type="radio" name='state' value='1' @if($res['state']==1) checked @else '' @endif > <label>上架</label></li>
                                <li><input type="radio" name='state' value='2' @if($res['state']==2) checked @else '' @endif > <label>下架</label></li>
                            </ul>
                        </div>
                    </div>
        		<input type="hidden" name='id' value="{{$res['id']}}">
        		{{csrf_field()}}
        		<div class="mws-button-row">
        			<input value="确认修改" class="btn btn-danger" type="submit">
        			<input value="放弃修改" class="btn " type="reset">

        		</div>
        	</form>
        </div>
    </div>

@endsection